package edu.uclm.esi.tysw.tusEntradas.domain;

import java.sql.SQLException;

import edu.uclm.esi.tysw.tusEntradas.persistence.UsuarioDAO;

public class Usuario {

	private String username;
	private String pass;
	
	public Usuario(){
		
	}
	
	public Usuario(String username,String pass){
		this.setUsername(username);
		this.setPass(pass);
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}
	public boolean usuarioEncontrado(Usuario user) throws SQLException{
		return UsuarioDAO.select(user.username, user.pass);
	}
	
}
